//
//  VoiceDefineBtn.m
//  智慧小区
//
//  Created by lab603 on 15/7/8.
//  Copyright (c) 2015年 Dreamsoul. All rights reserved.
//

#import "VoiceDefineBtn.h"
@interface VoiceDefineBtn()
//添加的小图标
@property (nonatomic,weak)UIImageView *voiceImageView;
@end
@implementation VoiceDefineBtn
- (id)init{
    if (self = [super init]) {
        //添加小图标
        UIImageView *voiceImageView = [[UIImageView alloc] init];
        voiceImageView.image = [UIImage imageNamed:@"voice003"];
        [self addSubview:voiceImageView];
        self.voiceImageView = voiceImageView;
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
#define kVoicePlaySignSideLength 15.0f
    self.voiceImageView.frame = CGRectMake(5.0f, (25-kVoicePlaySignSideLength)/2, kVoicePlaySignSideLength, kVoicePlaySignSideLength);
}
@end
